//
//  SQSocket.h
//  SQ_NEW
//
//  Created by 刘明 on 2017/5/11.
//  Copyright © 2017年 刘明. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
typedef enum : NSInteger {
    SQSocketOffLineByServer,
    SQSocketOffLineByUser,
} SQSocketOffLineStyle;

@interface SQSocket : NSObject

@property (nonatomic, assign) SQSocketOffLineStyle offLineStyle;

@property (nonatomic, copy) void(^socketRecevieDataBlock)(NSString *);


/**
 单利
 */
singleton_interface(SQSocket)

/*!
 @brief 连接socket
 */
- (void)socketConnect;


/*!
 @brief 发送消息
 @param code 发送的内容
 */
- (void)socketDidSendMessage:(NSString *)code;

/*!
 @brief 断开连接
 */
- (void)socketDisconnect;

@end
